package com.scut.project.service;

import com.scut.project.entity.Answer;
import com.scut.project.entity.Interview;
import com.baomidou.mybatisplus.extension.service.IService;
import com.scut.project.entity.ShortAnswerQuestion;

import java.io.InputStream;
import java.util.List;

/**
 * <p>
 * 面试流程记录 服务类
 * </p>
 *
 * @author Kevin Zheng
 * @since 2024-10-15
 */

public interface InterviewService extends IService<Interview> {
    // 获取面试问题
    List<ShortAnswerQuestion> getQuestions(Long interviewId);

    // 处理语音输入并返回文本回答
    String processVoiceAnswer(InputStream voiceInput);

    // 向大语言模型发送回答并获取评估反馈
    Answer evaluateAnswer(Long questionId, String answerText, Long candidateId);
}
